#include "fifo.hpp"
int main()
{
    Fifo MUfifo(MyFifoPath, User);
    if (MUfifo.OpenForWrite())
    {
        while (true)
        {
            std::cout << "写下你要说的话，骚年：";
            std::string message;
            std::getline(std::cin, message);
            int n = MUfifo.WriteFifo(message);
            if (n == 0)
            {
                std::cout << "写端不写了，退出了" << std::endl;
                break;
            }
            else if (n < 0)
            {
                std::cout << "写端代码有问题" << std::endl;
                break;
            }
        }
    }
    return 0;
}